 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <link href="../static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="col">
        <form class="form-login" action="LoginController" method="post">
            <h3 class="text-center">欢迎登录</h3>
            <div class="form-group">
                <label for="id_username">用户名：</label>
                <input type="text" name="name" class="form-control" id="id_username" placeholder="Username" value="${form.name}" autofocus required>
                <span>${form.errors.name} ${DBMes}</span>
            </div>
            <div class="form-group">
                <label for="id_password">密码：</label>
                <input type="password" name='password' class="form-control" id="id_password" placeholder="Password" required>
                <span>${form.errors.password} ${PSWDMes}</span>
            </div>
            <div>
                <a href="register.jsp" class="text-success "><ins>新用户注册</ins></a><br>
                <a href="forget_password.jsp" class="text-success"><ins>忘记密码</ins></a>
                <button type="submit" class="btn btn-primary float-right">登录</button>
            </div>
        </form>
    </div>
</div> <!-- /container -->

<script src="../static/bootstrap/js/jquery-3.4.1.min.js"></script>
<script src="../static/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>
